package example.pattern.state;

public class LowerState implements State {

	@Override
	public void print(StateContext sc, String str) {
		System.out.println("lower: " + str.toLowerCase());
		if(sc.getCounter() % 5 ==0){
			sc.setState(new CommonState());
		}
	}

}
